-
-
Notifications
You must be signed in to change notification settings - Fork 19
Implement conditional Cocoa linking for targets #421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement conditional Cocoa linking for targets #421
Conversation
…raph Co-authored-by: giancarlo.buenaflor <[email protected]>
Co-authored-by: giancarlo.buenaflor <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #421 +/- ##
==========================================
- Coverage 79.32% 75.29% -4.04%
==========================================
Files 11 11
Lines 324 344 +20
Branches 49 52 +3
==========================================
+ Hits 257 259 +2
- Misses 39 57 +18
Partials 28 28 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I think the coverage doesn't account for the integration test? |
@romtsn this should be good to go |
...tiplatform-gradle-plugin/src/main/java/io/sentry/kotlin/multiplatform/gradle/SentryPlugin.kt
Outdated
Show resolved
Hide resolved
...tiplatform-gradle-plugin/src/main/java/io/sentry/kotlin/multiplatform/gradle/SentryPlugin.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the coverage doesn't account for the integration test?
yeah, I think there's a separate plugin for that. I think you started looking into that for SAGP but we never got around to wrap it up.
LGTM if it works :)
ah right, I'll have a look at that again when I have time |
📜 Description
Moved Sentry Cocoa framework linking configuration to execute only when Apple targets are present in the Gradle task graph. This prevents unnecessary execution of Cocoa-specific logic for non-Apple builds
💡 Motivation and Context
Previously, the plugin would eagerly configure Cocoa framework linking on macOS, even if the build only involved Android or JVM targets. This could lead to build failures if the Sentry Cocoa XCFramework was not found, despite not being needed. This change ensures the linking setup is deferred and only runs when relevant, improving build robustness and efficiency for mixed-platform projects.
💚 How did you test it?
Integration test
📝 Checklist
You have to check all boxes before merging:
sendDefaultPII
is enabled.🔮 Next steps